package com.lq.common.api.client;

import com.lq.common.api.dto.PaymentDTO;
import com.lq.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "payment-service")
public interface PaymentFeignClient {

    @GetMapping("/payments/{id}")
    Result<PaymentDTO> getPaymentById(@PathVariable("id") Long id);
    
    @GetMapping("/payments/order/{orderId}")
    Result<PaymentDTO> getPaymentByOrderId(@PathVariable("orderId") Long orderId);
}